package com.overseasShopping.Biz.impl;

import com.overseasShopping.Base.DAO.DetailUserDAO;
import com.overseasShopping.Base.DAO.UserDAO;
import com.overseasShopping.Base.DAOImpl.UserDAOImpl;
import com.overseasShopping.Biz.DetailUserBiz;
import com.overseasShopping.pojo.DetailUser;
import com.overseasShopping.pojo.User;

public class DetailUserBizImpl implements DetailUserBiz{
	private DetailUserDAO detailUserDAO=null;
	private UserDAO userDAO=null;
	
	public void setDetailUserDAO(DetailUserDAO detailUserDAO) {
		this.detailUserDAO = detailUserDAO;
	}
	
	
	public void setUserDAO(UserDAO userDAO) {
		this.userDAO = userDAO;
	}


	public void addUser(DetailUser detailUser ) {
	
		detailUserDAO.save(detailUser);
		
	}


	public DetailUser getUser(String userId) {
		return detailUserDAO.get(userId);
	}


	public void update(DetailUser detailUser) {
		detailUserDAO.update(detailUser);
	}


}
